package io.mft.commons.function.response;

import java.util.List;

import io.mft.commons.function.response.kv.KVMap;
import io.mft.commons.function.response.kv.KVMapList;
import io.mft.commons.function.response.kv.PageObject;

public interface ResponseWriter {
	//<T extends ResponseWriter> void initValue(T response);

	void write(String key, PageObject<KVMap> pager);

	
	<T> void writeObject(String key, PageObject<T> pager);
	
	void write(String key, DsType type, KVMapList value);
	
	<T> void writeObject(String key, DsType type, List<T> value);
	void clear();
	void clear(String key);
	
	void mainDsKey(String mainDsKey);
}
